
.fragmentContainer {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.iframe {
  overflow: hidden;
  position: relative;
  transition: all 0.3s;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;

  :global(.dark) & {
    background: #18181B;
  }

  iframe {
    border: none;
    overflow: hidden;
  }
  
  &.editMode {
    border: 2px dashed #1890ff;
    
    &:after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      pointer-events: none;
      z-index: 1;
    }
  }
}

.editPanel {
  margin-top: 16px;
  padding: 16px;
  background-color: #f5f5f5;
  border-radius: 8px;
  
  :global(.dark) & {
    background-color: #27272A;
  }
}

.editTextarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 12px;
  
  :global(.dark) & {
    background-color: #18181B;
    border-color: #3F3F46;
    color: #fff;
  }
  
  &:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  }
}

.editActions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.applyButton, .cancelButton {
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.applyButton {
  background-color: #1890ff;
  color: white;
  
  &:hover {
    background-color: #40a9ff;
  }
}

.cancelButton {
  background-color: #f0f0f0;
  color: rgba(0, 0, 0, 0.65);
  
  &:hover {
    background-color: #d9d9d9;
  }
  
  :global(.dark) & {
    background-color: #3F3F46;
    color: #fff;
    
    &:hover {
      background-color: #52525B;
    }
  }
}